package com.google.appengine.a4ieve.servlets.resources;

import java.util.*;

/**
 * User: Master
 * Date: 22.04.14
 * Time: 1:22
 */
public class ServletProvider implements ServletProvidable{
    private static final Map<String, Class<? extends Servant>> COMMANDS;
    static {
        Map<String, Class<? extends Servant>> temp = new HashMap<String, Class<? extends Servant>>();
        temp.put("addCurator", AddCuratorServant.class);
        temp.put("addStudent", AddStudentServant.class);
        temp.put("addAchievement", AchievementSavingServant.class);
        temp.put("decodeImage", ImageDecoderServant.class);
        temp.put("removeEntity", RemoveEntityServant.class);
        temp.put("getTabs", TabNameServant.class);
        temp.put("getCurators", GetCuratorServant.class);
        temp.put("getStudents", GetStudentsServant.class);
        temp.put("getATypes", GetAchievementTypeServant.class);
        temp.put("getGroups", GetGroupsServant.class);
        temp.put("getAchievements", GetAchievementsServant.class);
        temp.put("approveAchievement", ApproveAchievementServant.class);
        COMMANDS = Collections.unmodifiableMap(temp);
    }

    public ServletProvider() {
    }

    public Map<String, Class<? extends Servant>> getClasses() {
        return COMMANDS;
    }

}
